package methodcite;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class CiteStruct {
    public static void main(String[] args) {
        // 引用构造方法
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"小平-18","小同-19","小美-20");
        // 创建Student对象
        List<Student> students = list.stream().map(Student::new).toList();
        System.out.println(students);
    }
}
